services:
    foo:
        class: stdClass

    bar:
        alias: foo
        public: true
        # keys other than "alias" and "public" are invalid when defining an alias.
        calls:
            - [doSomething]
